#pragma once
#include "CImage.h"
#include "IResourceManager.h"

namespace DarkStorm2D 
{
namespace GraphicsCore 
{

class DLLDARKSTORM2D CImageManager : public IResourceManager<CImage>
{
public:
	CImageManager();
	~CImageManager();

	bool ReloadAll();
	bool Reload(const std::string & Name);

	bool IsLoad(){return m_IsLoad;}

	void SetFilename(const std::string & Name, const std::string & FileName);
	const std::string & GetFilename(const std::string & Name);

	bool AddFromFile(const std::string & Name, const std::string & FileName, bool MultiName =  false); 

	bool AddFromMemory(const std::string & Name, ImagePtr& Resource, bool MultiName =  false){return true;} // ATRAPA

	ImagePtr GetResource(const std::string Name);

	bool Remove(const std::string & Name){ return true;} // ATRAPA
	bool RemoveAll(){return true;}


};
};
};

